package cn.sunline.dreamvalue.constant;
/**
  * @title: RedisConstant
  * @projectName dream-value
  * @description: rediskey常量定义类
  * @author 11292
  * @date 2020/5/7 15:01
*/
public class RedisConstant {

    //梦想值key前缀
    public static final String DREAM_VALUE_REDIS_KEY_PRIFIX = "dreamValue:";

    //梦想值默认账户余额key
    public static final String DREAM_VALUE_BALANCE_REIDS_KEY_PRIFIX = DREAM_VALUE_REDIS_KEY_PRIFIX + "balance:" + DreamValueType.DEFALUT_TYPE.getCode() + ":";

    //梦想账号生成reids前缀
    public static final String DREAM_VALUE_NO_GENERATE_REIDS_KEY_PRIFIX = DREAM_VALUE_REDIS_KEY_PRIFIX + "dreamValueNoGenerate:" ;

    //梦想账号生成reids前缀
    public static final String DREAM_VALUE_FLOWNO_GENERATE_REIDS_KEY_PRIFIX = DREAM_VALUE_REDIS_KEY_PRIFIX + "dreamValueFlowNoGenerate:";

    //重试队列redis key前缀
    public static final String TOPIC_RETRY_REIDS_KEY_PRIFIX = DREAM_VALUE_REDIS_KEY_PRIFIX + "dreamValueTopicRetry:" ;

    //分布式锁前缀
    public static final String DISTRIBUTED_LOCK_REIDS_KEY_PRIFIX = DREAM_VALUE_REDIS_KEY_PRIFIX + "dreamValueLock:" ;

    //分布式锁前缀，查询梦想值余额
    public static final String DISTRIBUTED_LOCK_QUERY_REIDS_KEY_PRIFIX = DISTRIBUTED_LOCK_REIDS_KEY_PRIFIX + "query:" ;

    //分布式锁调减前缀
    public static final String DISTRIBUTED_LOCK_SUBTRACT_REIDS_KEY_PRIFIX = DISTRIBUTED_LOCK_REIDS_KEY_PRIFIX + "subtract:" ;

    //分布式锁调增前缀
    public static final String DISTRIBUTED_LOCK_ADD_REIDS_KEY_PRIFIX = DISTRIBUTED_LOCK_REIDS_KEY_PRIFIX + "add:" ;


}
